﻿// Copyright: 2012 
// Author: Minh Vu - YoungJ
// File name: TextFileConverter.cs
// Solution: WpfEncryption
// Project: WpfEncryption
// Time: 9:24 PM 31/05/2012

using System;
using System.Globalization;
using System.Windows.Data;

namespace WpfEncryption.Converter
{
    public class TextFileConverter:IValueConverter
    {
        #region Implementation of IValueConverter

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var isFile = System.Convert.ToBoolean(value);
            return isFile ? "File CheckSum" : "Text Encrypt";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}